package com.ssy.lingxi.order.model.vo.basic.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 订单审核接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-01
 */
public class OrderAgreeVO extends OrderIdVO implements Serializable {
    private static final long serialVersionUID = -7845482383486612158L;

    /**
     * 审核状态，1-审核通过，0-审核不通过
     */
    @NotNull(message = "审核状态：1-审核通过，0-审核不通过")
    @Min(value = 0, message = "审核状态：1-审核通过，0-审核不通过")
    @Max(value = 1, message = "审核状态：1-审核通过，0-审核不通过")
    private Integer agree;

    /**
     * 审核不通过原因，（审核不通过时必填）
     */
    private String reason;

    public Integer getAgree() {
        return agree;
    }

    public void setAgree(Integer agree) {
        this.agree = agree;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
